﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace PHMEE.EnergyEfficiency
{
    public interface IFlowmeterTemplateRepository : IRepository<FlowmeterTemplate, Guid>
    {
        /// <summary>
        /// 根据模版获取数据结构
        /// </summary>
        /// <param name="mode">模版</param>
        /// <returns></returns>
        Task<List<FlowmeterTemplate>> GetTemplatesByModeAsync(FlowMeterModeEnum mode);
        /// <summary>
        /// 获取所有流量计（即流量计所有子表名）
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        Task<List<string>> GetFlowmeterNames(FlowMeterModeEnum mode);
    }
}
